<%@ page language="java" contentType="text/html; charset=UTF-8"
	import="java.util.*" pageEncoding="UTF-8"%>
	<%String path=request.getContextPath(); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>BONC简历操作中心</title>

		<jsp:include page="import.jsp"/>

		<link href="<%= path%>/css/basicPage/detailResume.css" rel="stylesheet" />

	</head>

	<body style="background-color: #F4F5F8;">
	<jsp:include page="head.jsp"></jsp:include>
		<div style="text-align:center;">

        <div class="container">
			<div class="row"  style="background-color: #fff;">
				<div class="col-md-12 bottom_border">
					<div id="Dashboard_div" class="glyphicon glyphicon-list" style="color:#66CCFF;">个人简历
						
							<div style="float:right;font-size: 18px; font-family: '微软雅黑';cursor: pointer;">星标简历&nbsp
							<%
								 String star = (String)session.getAttribute("star");
								 if(star!=null){
									 if(star=="yes"){
							%>
								<span id="star_id" value="yes" style=" font-size: 20px;color:red;" class="glyphicon glyphicon-star" onclick="Star();"></span>		 
	 
							<% 
								}else if(star=="no"){
							%>
							
								<span id="star_id" value="no" style=" font-size: 20px;" class="glyphicon glyphicon-star-empty" onclick="Star();"></span>			
							
							<%  
									 }
								 }
							%>
							<!-- 现在 可以从后台获取，但是 也需要 自己加上 点击事件 -->
							<span id="star_id" value="yes" style=" font-size: 20px;" class="glyphicon glyphicon-star starRed" onclick="Star();"></span></div>
							<script type="text/javascript">
								function Star(){
									var val = $("#star_id").attr('value');
									//alert(val);
									if(val=="yes"){
										$("#star_id").removeClass("glyphicon-star");
										$("#star_id").addClass("glyphicon-star-empty");
										$("#star_id").attr("value","no");
										$("#star_id").addClass("starBlack");
										$("#star_id").removeClass("starRed");
										
										
									}
									if(val=="no"){
										$("#star_id").removeClass("glyphicon-star-empty");
										$("#star_id").addClass("glyphicon-star");
										$("#star_id").attr("value","yes");
										$("#star_id").addClass("starRed");
										$("#star_id").removeClass("starBlack");
										
									}
									
								}
							</script>
							
						
						</div>
				</div>
				<div class="col-md-12">

				
						 
						

													 
						<div style="width: 100%; background-color: #fff;">

							<div class="detailResume_totaldiv">
								<div class="jiaobiao_div" style="color: #FF6600;">基本信息</div>
								<div style="border-bottom:solid 2px #FF6600;"></div>
								<br/>
								<div class="message_div"> <span class="glyphicon glyphicon-user" style="color: rgb(128, 148, 172);"> 姓名:&nbsp; </span><span>${requestScope.personalResumeList.get(0).get("name")}</span><span>&nbsp <a class="glyphicon glyphicon-share-alt" href="<%= path%>/relationalView" title="关系视图页"></a></span></div>

								<div class="message_div"><span class="glyphicon glyphicon-home" style="color: rgb(128, 148, 172);"> 学校:&nbsp; </span><span>${requestScope.personalResumeList.get(0).get("education")}</span></div>

								<div class="message_div"><span class="glyphicon glyphicon-earphone" style="color: rgb(128, 148, 172);"> 手机:&nbsp; </span><span>${requestScope.personalResumeList.get(0).get("phoneNum")}</span></div>

								<div class="message_div"><span class="glyphicon glyphicon-list" style="color: rgb(128, 148, 172);"> 学历:&nbsp; </span><span>${requestScope.personalResumeList.get(0).get("degree")}</span></div>

								<div class="message_right_div0"><span class="glyphicon glyphicon-book" style="color: rgb(128, 148, 172);"> 工作经验:&nbsp; </span><span>${requestScope.personalResumeList.get(0).get("workingExperience")}年</span></div>
	
								<div class="message_right_div1"><span class="glyphicon glyphicon-envelope" style="color: rgb(128, 148, 172);"> 邮箱:&nbsp; </span><span>${requestScope.personalResumeList.get(0).get("email")}</span></div>

								<div class="message_right_div2"> <span class="glyphicon glyphicon-info-sign" style="color: rgb(128, 148, 172);"> 性别:&nbsp;</span><span>${requestScope.personalResumeList.get(0).get("gender")}</span></div>

								<div class="message_right_div3"><span class="glyphicon glyphicon-copyright-mark" style="color: rgb(128, 148, 172);"> 年龄:&nbsp;</span><span>${requestScope.personalResumeList.get(0).get("age")}</span></div>

							</div>
							
							<div class="detailResume_totaldiv">
								<div class="jiaobiao_div" style="color: #CC3333;">求职意向</div>
								<div style="border-bottom:solid 2px #CC3333;"></div>
								<br/>
								<div class="message_div"> <span class="glyphicon glyphicon-list" style="color: rgb(128, 148, 172);"> 简介: </span><br /><span style="padding-right: 20px;"> 
									<br />
									${requestScope.personalResumeList.get(0).get("careerObjective")}
									</span></div>

							</div>
								
							<div class="detailResume_totaldiv">
								<div class="jiaobiao_div" style="color: #FFFF00;">教育经历</div>
								<div style="border-bottom:solid 2px #FFFF00;"></div>
								<br/>
								<div class="message_div"> <span class="glyphicon glyphicon-list" style="color: rgb(128, 148, 172);"> 简介: </span><br /><span style="padding-right: 20px;"> 
									<br />
									${requestScope.personalResumeList.get(0).get("educationalExperience")}
									</span></div>

							</div>
							
							 <div class="detailResume_totaldiv">
									<div class="jiaobiao_div" style="color: #FFCC00;">掌握技能</div>
								<div style="border-bottom:solid 2px #FFCC00;"></div>
								<br/>
								<div class="message_div"> <span class="glyphicon glyphicon-list" style="color: rgb(128, 148, 172);"> 语言技能: </span><br /><span style="padding-right: 20px;"> 
									<br />
									${requestScope.personalResumeList.get(0).get("languageSkills")}
									</span></div>
								 
								<div class="message_div"> <span class="glyphicon glyphicon-list" style="color: rgb(128, 148, 172);"> 工作技能: </span><br /><span style="padding-right: 20px;"> 
									<br />
									${requestScope.personalResumeList.get(0).get("skills")}
									</span></div>

							</div>
							
							<div class="detailResume_totaldiv">
								<div class="jiaobiao_div" style="color: #336699;">工作经历</div>
								<div style="border-bottom:solid 2px #336699;"></div>
								<br/>
								<div class="message_div"><span class="glyphicon glyphicon-calendar" style="color: rgb(128, 148, 172);"> 公司： </span><span style="padding-right: 20px;">${requestScope.personalResumeList.get(0).get("company")}</span></div>
								<div class="message_div"> <span class="glyphicon glyphicon-list" style="color: rgb(128, 148, 172);"> 简介: </span><br />
								<br />
								
								<span style="padding-right: 20px;"> 
									
									${requestScope.personalResumeList.get(0).get("workExperience")}
									</span></div>

							</div>

							<div class="detailResume_totaldiv">
								<div class="jiaobiao_div" style="color: #99CC00;">项目经历</div>
								<div style="border-bottom:solid 2px #99CC00;"></div>
								<br/>
								<div class="message_div" > <span class="glyphicon glyphicon-list" style="color: rgb(128, 148, 172);"> 简介:</span><br /><span style="padding-right: 20px;"> 
									<br />
									${requestScope.personalResumeList.get(0).get("projectExperience")}
									</span></div>

							</div>

							<div class="detailResume_totaldiv">
								<div class="jiaobiao_div" style="color: #003399;">简历浏览</div>
								<div style="border-bottom:solid 2px #003399;"></div>
								<br/>
								<div class="message_div"> <span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="glyphicon glyphicon-download-alt" style="color: rgb(128, 148, 172);"><span>&nbsp;&nbsp;</span><a href="<%= path%>/download?path=${requestScope.personalResumeList.get(0).get('path')}">下载原版简历</a> </span> </div> 

							</div>

					</div>
					</div>
					<%-- <div class="col-md-3" style="background-color: #fff;">
							<div class="right_totaldiv">
								  
									  <div><span style="font-size: 18px;"><br /> <br /> <br /> 相似信息</span><br/>
									  <span style="font-size: 14px;margin-left:-200px;">学校：</span>
									  
									 <table id="BookTable" class="table table-striped table-bordered table-hover" style="margin-bottom:0px;">

										<tbody>
										<!-- 把 公司  学校  都 分开来展示 ，，如果点击，进入查询 吧  。。 -->
										 <%
										 Map<String, List<Map<String, Object>>> sessionmap = (Map<String, List<Map<String, Object>>>)session.getAttribute("relationSchemaMap");
										 ArrayList<Map<String, Object>> arraylist = (ArrayList<Map<String, Object>>) sessionmap
													.get("origin");
											Map<String, Object> map = (Map<String, Object>) arraylist.get(0); 
										 
										 String s = map.get("education").toString();
											
											 
											String[] newstrEducation = s.split(" ");
										 
										 for(int i =0;i<newstrEducation.length;i++){
												 if(i==0||i%3==0){
												%>
												<tr>
												<%}%>
												
												<td><a href="<%= path%>/select/detailQuery?queryValue=<%=newstrEducation[i]%>" title = "<%=newstrEducation[i]%>"><%=newstrEducation[i]%></a></td>
												<%	
											 if((i+1)%3==0||i==newstrEducation.length){
												%>
												</tr>
												<%}%>
												
										<%}%>
											</tbody>

									</table>  
										
										 
										
										 <br/>
										 <span style="font-size: 14px;margin-left:-200px;">公司：</span>
										 <table id="BookTable" class="table table-striped table-bordered table-hover" style="margin-bottom:0px;">

										<tbody>
										<% String s1 = map.get("company").toString();
											
											 
											String[] newstrCompany = s1.split(" ");
										 
										 for(int i =0;i<newstrCompany.length;i++){
												 if(i==0||i%3==0){
												%>
												<tr>
												<%}%>
												
												<td><a href="<%= path%>/select/detailQuery?queryValue=<%=newstrCompany[i]%>" title = "<%=newstrCompany[i]%>"><%=newstrCompany[i]%></a></td>
												<%	
											 if((i+1)%3==0||i==newstrCompany.length){
												%>
												</tr>
												<%}%>
												
										<%}%>

										</tbody>

									</table>  

								</div>

							</div>

						</div>


						<!-- end 右侧 div--> --%>
					</div>

				</div>
			</div>

	</body>

</html>